-- GENERATED SPELL FOR [Shard-Hide Boar] --


function spell0_22180(pUnit, Event) --@Shard Hide,n/a--
pUnit:FullCastSpellOnTarget(40773,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22180', 548, 1)
end

function spell1_22180(pUnit, Event) --@Spell Reflection,Self--
pUnit:FullCastSpellOnTarget(34783,pUnit)
pUnit:RegisterEvent('Sorts_22180', 4343, 1)
end

function Sorts_22180(pUnit, Event)
local choix_sorts_22180 = math.random(0, 1)
if choix_sorts_22180 == 0 then
pUnit:RegisterEvent('spell0_22180', 1, 1)
end
if choix_sorts_22180 == 1 then
pUnit:RegisterEvent('spell1_22180', 1, 1)
end
end

function mob22180_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22180', math.random(1500, 3000), 1)
end

function mob22180_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22180_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22180_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22180, 1, 'mob22180_Action')
RegisterUnitEvent(22180, 2, 'mob22180_Leave')
RegisterUnitEvent(22180, 3, 'mob22180_Kill')
RegisterUnitEvent(22180, 4, 'mob22180_Die')
